﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UC_ReportBasket_Detail.ascx.cs"
    Inherits="Stationery.UC.UC_ReportBasket_Detail" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<table cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td>
            <table style="width: 100%; font-family: Tahoma; font-size: 12px;">
                <tr>
                    <td colspan="4" align="center">
                        <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False"
                            Width="100%">
                            <SettingsBehavior ColumnResizeMode="Disabled" />
                            <SettingsText EmptyDataRow="Bạn có 0 sản phẩm trong giỏ hàng" />
                            <Columns>
                                <dxwgv:GridViewDataTextColumn Caption="STT" VisibleIndex="0" FieldName="ID" Visible="False">
                                </dxwgv:GridViewDataTextColumn>
                                <dxwgv:GridViewDataTextColumn Caption="Tên sản phẩm" FieldName="PRODUCT_DETAIL.NAME"
                                    VisibleIndex="0" Width="150px" EditCellStyle-HorizontalAlign="NotSet" CellStyle-VerticalAlign="NotSet"
                                    CellStyle-HorizontalAlign="Left">
                                    <CellStyle HorizontalAlign="Left">
                                    </CellStyle>
                                </dxwgv:GridViewDataTextColumn>
                                <dxwgv:GridViewDataImageColumn Caption="Hình ảnh" Width="80px" FieldName="PRODUCT_DETAIL.IMAGE_DIRECTORY"
                                    VisibleIndex="1">
                                    <PropertiesImage ImageHeight="40px" ImageWidth="40px">
                                    </PropertiesImage>
                                </dxwgv:GridViewDataImageColumn>
                                <dxwgv:GridViewDataTextColumn Caption="Số lượng" VisibleIndex="2" Width="70px" FieldName="QUANTITY"
                                    Name="QUANTITY">
                                    <DataItemTemplate>
                                        <dxe:ASPxSpinEdit ID="ASPxSpinEdit1" runat="server" Width="60px" Height="21px" Value='<%# Eval("QUANTITY") %>' />
                                    </DataItemTemplate>
                                </dxwgv:GridViewDataTextColumn>
                                <dxwgv:GridViewDataTextColumn Caption="Đơn giá" Width="100px" VisibleIndex="3" FieldName="PRICE">
                                </dxwgv:GridViewDataTextColumn>
                                <dxwgv:GridViewDataTextColumn Caption="Thành tiền" Width="120px" VisibleIndex="4"
                                    FieldName="TOTAL">
                                </dxwgv:GridViewDataTextColumn>
                                <dxwgv:GridViewDataTextColumn VisibleIndex="5" Width="30px">
                                    <DataItemTemplate>
                                        <table align="center" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                                <td>
                                                    <asp:LinkButton ID="LinkButtonDelete" runat="server" BorderStyle="None" CommandArgument='<%# Eval("ID_PRODUCT") %>'
                                                        CausesValidation="False" OnClick="LinkButtonDelete_Click"><img 
                                            src="Image/Icon/delete.gif" /></asp:LinkButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </DataItemTemplate>
                                </dxwgv:GridViewDataTextColumn>
                            </Columns>
                        </dxwgv:ASPxGridView>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="4">
                        <table cellpadding="5">
                            <tr>
                                <td>
                                    <dxe:ASPxButton ID="ASPxButtonUpdate" runat="server" Text="Cập nhật" CausesValidation="False"
                                        OnClick="ASPxButtonUpdate_Click">
                                    </dxe:ASPxButton>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <table cellpadding="3" cellspacing="0" style="color: #333333; border-color: #FF6600;
                border-width: 1px; border-style: Solid; width: 100%;">
                <tr>
                    <td colspan="4" style="height: 22px; background-color: #FFAA71;">
                        <asp:Label ID="lblthongtinkhachhang" runat="server" Font-Bold="True" Font-Size="Small"
                            ForeColor="Black" Text="Thông tin khách hàng"></asp:Label>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td colspan="3" style="height: 8px;">
                        &nbsp;
                    </td>
                    <td style="height: 8px">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td style="width: 5px; height: 21px">
                    </td>
                    <td style="height: 21px; width: 120px;">
                        <asp:Label ID="lblhoten" runat="server" Text="Họ tên" Font-Bold="True"></asp:Label>
                    </td>
                    <td style="width: 400px;">
                        <dxe:ASPxTextBox ID="ASPxTextBoxFullName" runat="server" Width="400px">
                        </dxe:ASPxTextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ASPxTextBoxFullName"
                            ErrorMessage="*"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 5px; height: 21px">
                    </td>
                    <td style="height: 21px">
                        <asp:Label ID="lbldiachi" runat="server" Text="Địa chỉ" Font-Bold="True"></asp:Label>
                    </td>
                    <td>
                        <dxe:ASPxTextBox ID="ASPxTextBoxAddress" runat="server" Width="400px">
                        </dxe:ASPxTextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ASPxTextBoxAddress"
                            ErrorMessage="*"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 5px">
                        &nbsp;
                    </td>
                    <td style="height: 21px">
                        <asp:Label ID="lbldiachi0" runat="server" Text="Tỉnh thành phố" Font-Bold="True"></asp:Label>
                    </td>
                    <td>
                        <dxe:ASPxComboBox ID="ASPxComboBoxCity" runat="server" ValueType="System.String"
                            Width="400px" TextField="NAME" ValueField="NAME">
                        </dxe:ASPxComboBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="ASPxComboBoxCity"
                            ErrorMessage="*"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 5px">
                    </td>
                    <td style="height: 21px">
                        <asp:Label ID="lbldienthoai" runat="server" Text="Điện thoại" Font-Bold="True"></asp:Label>
                    </td>
                    <td>
                        <dxe:ASPxTextBox ID="ASPxTextBoxPhone" runat="server" Width="400px">
                        </dxe:ASPxTextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="ASPxTextBoxPhone"
                            ErrorMessage="*"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 5px">
                    </td>
                    <td style="height: 21px">
                        <asp:Label ID="lblemail" runat="server" Text="Email" Font-Bold="True"></asp:Label>
                    </td>
                    <td>
                        <dxe:ASPxTextBox ID="ASPxTextBoxEmail" runat="server" Width="400px">
                        </dxe:ASPxTextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td style="width: 5px">
                        &nbsp;
                    </td>
                    <td style="height: 21px">
                        <asp:Label ID="lblDateRecieve" runat="server" Text="Ngày nhận hàng" Font-Bold="True"></asp:Label>
                    </td>
                    <td>
                        <dxe:ASPxDateEdit ID="ASPxDateEdit1" runat="server" DisplayFormatString="dd/MM/yyyy"
                            EditFormat="Custom" EditFormatString="dd/MM/yyyy">
                        </dxe:ASPxDateEdit>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="ASPxDateEdit1"
                            ErrorMessage="*"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 5px">
                    </td>
                    <td style="height: 21px">
                        <asp:Label ID="lblghichu" runat="server" Text="Ghi chú" Font-Bold="True"></asp:Label>
                    </td>
                    <td>
                        <dxe:ASPxMemo ID="ASPxMemoNote" runat="server" Height="42px" Width="400px">
                        </dxe:ASPxMemo>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td style="width: 5px; height: 21px;">
                    </td>
                    <td colspan="3" style="height: 21px">
                        <asp:Label ID="lblchuy" runat="server" ForeColor="Red" Height="18px" Text="NSD phải nhập đầy đủ thông tin có dấu (*)"></asp:Label>
                        &nbsp;
                    </td>
                </tr>
            </table>
            <table cellpadding="4" cellspacing="0" width="100%">
                <tr>
                    <td align="center">
                        <table cellpadding="0" cellspacing="4">
                            <tr>
                                <td>
                                    <dxe:ASPxButton ID="ASPxButtonOrder" runat="server" Text="Cập nhật lại" OnClick="ASPxButtonOrder_Click">
                                        <Image Url="~/Image/Icon/update.png" />
                                    </dxe:ASPxButton>
                                </td>
                                <td>
                                    <dxe:ASPxButton ID="ASPxButtonCancel" runat="server" Text="Hủy đơn hàng" OnClick="ASPxButtonCancel_Click">
                                        <Image Url="~/Image/Icon/DeleteRed.png" />
                                    </dxe:ASPxButton>
                                </td>
                                <td>
                                    <dxe:ASPxButton ID="ASPxButtonSuccess" runat="server" Text="Đơn hàng thành công"
                                        OnClick="ASPxButtonSuccess_Click">
                                        <Image Url="~/Image/Icon/success.gif" />
                                    </dxe:ASPxButton>
                                </td>
                                <td>
                                    <dxe:ASPxButton ID="ASPxButtonExcel" runat="server" Text="Xuất Excel" 
                                        HorizontalAlign="Left" onclick="ASPxButtonExcel_Click">
                                        <Image Url="~/Image/Icon/excel16.gif" />
                                    </dxe:ASPxButton>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
